package com.talent.web.front;

import com.talent.model.front.CUser;
import com.talent.service.CUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by xu_xy on 2017/4/11.
 */
@RestController
public class CUserController {

    @Autowired
    private CUserService cUserService;

    @RequestMapping("/users")
    public List<CUser> queryUsers() {
        return cUserService.queryUsers();
    }

}
